/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.practica1;

/**
 *
 * @author omar
 */
public class SearchAPI {

    String look = "abcdefghijklmnopqrstuvwxyz1234567890";
    public SearchAPI() {
    }

    public int find(String text)
    {
        if(look.contains(text))
        {
            return look.indexOf(text);
        }
        else
            return -1;
    }
    
    public void reemplazar(String replace, String newstring)
    {
        this.look.replaceAll(replace, newstring);
    }
}
